
void echo(char* str){


	printf("%s\n",str);
}

void echo(int  str){


	printf("%d\n",str);
}

void echo(char  str){


	printf("%c\n",str);
}


void printf(Object &obj){ //whay not *??
	//may be this mean all class both the point use;
    Object *p0 =&obj;
	printf("%s\n",p0->toString());;
}

void echo(Object &obj){ 

	printf(obj);
}
int Hex2Char(char* a){

		if( a[0] < '0' || a[0] > 'F' ||  a[1] < '0' || a[1] > 'F'){
				
				return -1;
		}
		int  x=0,ret=0;
		ret = (a[0] >= 'A')?  (a[0] - 'A' +10) : (a[0] - '0');
		ret = ret*16;
		ret+= (a[1] >= 'A')?  (a[1] - 'A' +10) : (a[1] - '0');
		return ret;
}

void Char2Hex(char* a,int a0){

	if(a0 <-127 || a0 > 127){
		
		return ;
		
	}
	int x=0;
	a[0]= (x= (a0 >> 4) & 0x0f) >=10 ?  x-10+'A'  : x +'0';
	a[1]= (x= a0 & 0x0f) >=10 ?  x-10+'A'  : x +'0';
	
}
